import request from "@/utils/request";
import qs from "qs";

// 类目树列表
export function apiServiceCategoryTree(data) {
  return request({
    method: "post",
    url: "/serviceCategory/categoryTree",
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
  });
}

// 类目树列表
export function apiServiceCategoryList(data) {
  return request({
    method: "post",
    url: "/serviceCategory/categoryList",
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
  });
}
